package com.gxuwz.entity;

import java.io.Serializable;

/**
 * 用户实体 
 * @author: 刘玉霜
 * @date: 2017年12月11日 下午12:40:54
 */
public class User implements Serializable {

	private static final long serialVersionUID = 1L;

	/** 用户ID */
	private Integer userId;
	
	/** 名字 */
	private String name;
	
	/** 年龄 */
	private Integer age;
	
	/** 性别：1-男，0-女 */
	private Integer sex;
	
	/** 登陆的用户名 */
	private String username;
	
	/** 登陆的密码 */
	private String password;
	
	/** 创建时间 */
	private String createTime;
	
	/** 角色的ID */
	private Integer roleId;
	
	private Role role;

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public Integer getRoleId() {
		return roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

}
